package com.hailian.fintech.hlfinanceserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hailian.fintech.hlcomm_interfaceserver.entity.POJO;
import com.hailian.fintech.hlfinanceserver.entity.Tixian;
import com.hailian.fintech.hlfinanceserver.mapper.TixianMapper;
import com.hailian.fintech.hlfinanceserver.service.ITixianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wk
 * @since 2020-05-23
 */
@Service
public class TixianServiceImpl extends ServiceImpl<TixianMapper, Tixian> implements ITixianService {

    @Autowired
    private TixianMapper tixianMapper;

    @Override
    public PageInfo selectOwner(Integer pageNum, Integer pageSize, POJO pojo) {
        PageHelper.startPage(pageNum,pageSize);
        return new PageInfo(tixianMapper.selectOwner(pojo));
    }
}
